﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CsplCalculatorLib;
using CsplCalculatorLib.Model;


namespace CsplCalculatorMain
{
    class Program
    {
        public static void Main(string[] args)
        {
            MainCalculator calculator = new MainCalculator();
            CalModel data1 = new CalModel();
            CalModel data2 = new CalModel("Div");

            data1.IntegerValue1 = 20;
            data1.IntegerValue2 = 0;
            data1.Operation = "Div";

            calculator.Data = data1;
            int result = 0;

            try
            {
                result = calculator.Calculate();
            }
            catch(Exception ex)
            {
                Console.WriteLine("An Exception occured");
            
            }
        }
    }
}
